css: Move _gtk_css_print_string around
authorMatthias Clasen <mclasen@redhat.com>
Sat, 3 Oct 2020 02:28:17 +0000 (22:28 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 3 Oct 2020 03:40:16 +0000 (23:40 -0400)
Move this to a separate header, since it is not
parser functionality, and kill the duplicate
gtkcssparserprivate.h header.

37 files changed:
gsk/gskrendernodeparser.c
gtk/css/gtkcssparserprivate.h
gtk/css/gtkcssserializer.c [new file with mode: 0644]
gtk/css/gtkcssserializerprivate.h [new file with mode: 0644]
gtk/css/meson.build
gtk/gtkcssarrayvalueprivate.h
gtk/gtkcssbgsizevalueprivate.h
gtk/gtkcssbordervalueprivate.h
gtk/gtkcsscolorvalueprivate.h
gtk/gtkcsscornervalueprivate.h
gtk/gtkcsseasevalueprivate.h
gtk/gtkcssenumvalueprivate.h
gtk/gtkcssfiltervalueprivate.h
gtk/gtkcssfontfeaturesvalue.c
gtk/gtkcssfontfeaturesvalueprivate.h
gtk/gtkcssfontvariationsvalue.c
gtk/gtkcssfontvariationsvalueprivate.h
gtk/gtkcssimageicontheme.c
gtk/gtkcssimageprivate.h
gtk/gtkcsskeyframesprivate.h
gtk/gtkcssnumbervalueprivate.h
gtk/gtkcsspalettevalueprivate.h
gtk/gtkcssparser.c [deleted file]
gtk/gtkcssparserprivate.h [deleted file]
gtk/gtkcsspositionvalueprivate.h
gtk/gtkcssprovider.c
gtk/gtkcssrepeatvalueprivate.h
gtk/gtkcssselectorprivate.h
gtk/gtkcssshadowvalueprivate.h
gtk/gtkcssshorthandpropertyprivate.h
gtk/gtkcssstringvalue.c
gtk/gtkcssstringvalueprivate.h
gtk/gtkcssstylepropertyimpl.c
gtk/gtkcsstransformvalueprivate.h
gtk/gtkstyleproperty.c
gtk/gtkstylepropertyprivate.h
gtk/meson.build

index 667a68f8a9ccf65b5dc1782220dd6439ce4c28c8..06d1bdb4d250fabbbe656ddb8b244156d59b1cbf 100644 (file)
@@ -32,6 +32,7 @@
 #include <gtk/css/gtkcss.h>
 #include "gtk/css/gtkcssdataurlprivate.h"
 #include "gtk/css/gtkcssparserprivate.h"
+#include "gtk/css/gtkcssserializerprivate.h"
 
 #ifdef CAIRO_HAS_SCRIPT_SURFACE
 #include <cairo-script.h>
index 9239477020b576cc99acf8f4a6c3c7fb3377a58a..349ad6799927fbb7d12dc594b218a16a601d5a9e 100644 (file)
@@ -151,9 +151,6 @@ gsize                   gtk_css_parser_consume_any              (GtkCssParser
                                                                  gsize                           n_options,
                                                                  gpointer                        user_data);
 
-
-void            _gtk_css_print_string             (GString               *str,
-                                                   const char            *string);
 G_END_DECLS
 
 #endif /* __GTK_CSS_PARSER_H__ */
diff --git a/gtk/css/gtkcssserializer.c b/gtk/css/gtkcssserializer.c
new file mode 100644 (file)
index 0000000..838a7fb
--- /dev/null
@@ -0,0 +1,68 @@
+/* GTK - The GIMP Toolkit
+ * Copyright (C) 2011 Benjamin Otte <otte@gnome.org>
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+#include "config.h"
+
+#include "gtkcssserializerprivate.h"
+
+/* Escape a string so that it can be parsed
+ * as a css string again.
+ */
+void
+_gtk_css_print_string (GString    *str,
+                       const char *string)
+{
+  gsize len;
+
+  g_return_if_fail (str != NULL);
+  g_return_if_fail (string != NULL);
+
+  g_string_append_c (str, '"');
+
+  do {
+    len = strcspn (string, "\\\"\n\r\f");
+    g_string_append_len (str, string, len);
+    string += len;
+    switch (*string)
+      {
+      case '\0':
+        goto out;
+      case '\n':
+        g_string_append (str, "\\A ");
+        break;
+      case '\r':
+        g_string_append (str, "\\D ");
+        break;
+      case '\f':
+        g_string_append (str, "\\C ");
+        break;
+      case '\"':
+        g_string_append (str, "\\\"");
+        break;
+      case '\\':
+        g_string_append (str, "\\\\");
+        break;
+      default:
+        g_assert_not_reached ();
+        break;
+      }
+    string++;
+  } while (*string);
+
+out:
+  g_string_append_c (str, '"');
+}
diff --git a/gtk/css/gtkcssserializerprivate.h b/gtk/css/gtkcssserializerprivate.h
new file mode 100644 (file)
index 0000000..2d1a169
--- /dev/null
@@ -0,0 +1,33 @@
+/*
+ * Copyright © 2020 Red Hat, Inc
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library. If not, see <http://www.gnu.org/licenses/>.
+ *
+ * Authors: Matthias Clasen <mclasen@redhat.com>
+ */
+
+
+#ifndef __GTK_CSS_SERIALIZER_H__
+#define __GTK_CSS_SERIALIZER_H__
+
+#include <glib.h>
+
+G_BEGIN_DECLS
+
+void _gtk_css_print_string (GString    *str,
+                            const char *string);
+
+G_END_DECLS
+
+#endif /* __GTK_CSS_SERIALIZER_H__ */
index 00284baf3661928bd889d7b652b1d739745952a9..6b2456192866f2be63d270a767bfa51a8ec0262c 100644 (file)
@@ -8,6 +8,7 @@ gtk_css_private_sources = files([
   'gtkcssdataurl.c',
   'gtkcssparser.c',
   'gtkcsstokenizer.c',
+  'gtkcssserializer.c',
 ])
 
 gtk_css_public_headers = files([
index fb9fb376c07a7acdfc272c36c289a4a8741c5151..1f9f38b006d75347f51bbe02b8d4d0306b0136dc 100644 (file)
@@ -20,7 +20,9 @@
 #ifndef __GTK_CSS_ARRAY_VALUE_PRIVATE_H__
 #define __GTK_CSS_ARRAY_VALUE_PRIVATE_H__
 
-#include "gtkcssparserprivate.h"
+#include <gtk/css/gtkcss.h>
+#include "gtk/css/gtkcsstokenizerprivate.h"
+#include "gtk/css/gtkcssparserprivate.h"
 #include "gtkcssvalueprivate.h"
 #include "gtktypes.h"
 
index 5f31ff2208f146a474340595ebcf06b912935e6a..47e356ead69a45a1c9d0c73099f10f0d20a20eaa 100644 (file)
@@ -20,7 +20,9 @@
 #ifndef __GTK_CSS_BG_SIZE_VALUE_PRIVATE_H__
 #define __GTK_CSS_BG_SIZE_VALUE_PRIVATE_H__
 
-#include "gtkcssparserprivate.h"
+#include <gtk/css/gtkcss.h>
+#include "gtk/css/gtkcsstokenizerprivate.h"
+#include "gtk/css/gtkcssparserprivate.h"
 #include "gtkcssimageprivate.h"
 #include "gtkcssvalueprivate.h"
 
index fe49904002565c652394ab58fde13f09ea20b2e2..0fcaaf7db702e87a7b08cacb238027ea23fda83f 100644 (file)
@@ -20,7 +20,9 @@
 #ifndef __GTK_CSS_BORDER_VALUE_PRIVATE_H__
 #define __GTK_CSS_BORDER_VALUE_PRIVATE_H__
 
-#include "gtkcssparserprivate.h"
+#include <gtk/css/gtkcss.h>
+#include "gtk/css/gtkcsstokenizerprivate.h"
+#include "gtk/css/gtkcssparserprivate.h"
 #include "gtkcssnumbervalueprivate.h"
 #include "gtkcssvalueprivate.h"
 
index 49387d2c439a8b6f1c76256d60881a4470d26975..f96f6f42342a0cb874cc7afe15aba94748c7e8bc 100644 (file)
@@ -18,7 +18,9 @@
 #ifndef __GTK_CSS_COLOR_VALUE_PRIVATE_H__
 #define __GTK_CSS_COLOR_VALUE_PRIVATE_H__
 
-#include "gtkcssparserprivate.h"
+#include <gtk/css/gtkcss.h>
+#include "gtk/css/gtkcsstokenizerprivate.h"
+#include "gtk/css/gtkcssparserprivate.h"
 #include "gtkcssvalueprivate.h"
 
 G_BEGIN_DECLS
index 59451a78406bbb67560732afef54f881ac8207b9..a364ce9df584c84f83fcdde2b3314ef787e69d22 100644 (file)
@@ -20,7 +20,9 @@
 #ifndef __GTK_CSS_CORNER_VALUE_PRIVATE_H__
 #define __GTK_CSS_CORNER_VALUE_PRIVATE_H__
 
-#include "gtkcssparserprivate.h"
+#include <gtk/css/gtkcss.h>
+#include "gtk/css/gtkcsstokenizerprivate.h"
+#include "gtk/css/gtkcssparserprivate.h"
 #include "gtkcssvalueprivate.h"
 
 G_BEGIN_DECLS
index 6b4dab3717fd1e3c5a6ee541180515a4acf13cb5..8aa2770feeac0536b3e3b038ff4cb7fac61e0c29 100644 (file)
@@ -20,7 +20,9 @@
 #ifndef __GTK_CSS_EASE_VALUE_PRIVATE_H__
 #define __GTK_CSS_EASE_VALUE_PRIVATE_H__
 
-#include "gtkcssparserprivate.h"
+#include <gtk/css/gtkcss.h>
+#include "gtk/css/gtkcsstokenizerprivate.h"
+#include "gtk/css/gtkcssparserprivate.h"
 #include "gtkcssvalueprivate.h"
 
 G_BEGIN_DECLS
index 22bab5f1f4b230aa776d04d0c52c720f8caebdff..7ac181b7a9beed241e4cf86a1a3956bfafdfdea0 100644 (file)
@@ -21,7 +21,9 @@
 #define __GTK_CSS_ENUM_VALUE_PRIVATE_H__
 
 #include "gtkenums.h"
-#include "gtkcssparserprivate.h"
+#include <gtk/css/gtkcss.h>
+#include "gtk/css/gtkcsstokenizerprivate.h"
+#include "gtk/css/gtkcssparserprivate.h"
 #include "gtkcsstypesprivate.h"
 #include "gtkcssvalueprivate.h"
 
index b9eabaa237e1eee30998955ca0985d7709e3454c..6d76f906b7b9cd3a364edc315d8bc18832f2646f 100644 (file)
@@ -20,7 +20,9 @@
 #ifndef __GTK_CSS_FILTER_VALUE_PRIVATE_H__
 #define __GTK_CSS_FILTER_VALUE_PRIVATE_H__
 
-#include "gtkcssparserprivate.h"
+#include <gtk/css/gtkcss.h>
+#include "gtk/css/gtkcsstokenizerprivate.h"
+#include "gtk/css/gtkcssparserprivate.h"
 #include "gtkcssvalueprivate.h"
 
 G_BEGIN_DECLS
index c5f79eff89fe0c0701624eed17453b4266a339b1..faedc8cf4403d77ac5a970a7fdfa9020d279d572 100644 (file)
@@ -20,7 +20,9 @@
 #include "config.h"
 
 #include "gtkcsstypesprivate.h"
-#include "gtkcssparserprivate.h"
+#include <gtk/css/gtkcss.h>
+#include "gtk/css/gtkcsstokenizerprivate.h"
+#include "gtk/css/gtkcssparserprivate.h"
 #include "gtkcssnumbervalueprivate.h"
 #include "gtkcssfontfeaturesvalueprivate.h"
 
index f78a8cd1821f6f269791caa8631e793734fbe730..b0001da986f166a6baed152d686579a52bb19504 100644 (file)
@@ -20,7 +20,9 @@
 #ifndef __GTK_CSS_FONT_FEATURES_VALUE_PRIVATE_H__
 #define __GTK_CSS_FONT_FEATURES_VALUE_PRIVATE_H__
 
-#include "gtkcssparserprivate.h"
+#include <gtk/css/gtkcss.h>
+#include "gtk/css/gtkcsstokenizerprivate.h"
+#include "gtk/css/gtkcssparserprivate.h"
 #include "gtkcssvalueprivate.h"
 
 G_BEGIN_DECLS
index 174cacf4174bea75562b49d5e7bcfcc011acb4b1..2ecae30ab0004acb90e091c350501ca468d8c52e 100644 (file)
@@ -19,7 +19,9 @@
 
 #include "config.h"
 
-#include "gtkcssparserprivate.h"
+#include <gtk/css/gtkcss.h>
+#include "gtk/css/gtkcsstokenizerprivate.h"
+#include "gtk/css/gtkcssparserprivate.h"
 #include "gtkcssnumbervalueprivate.h"
 #include "gtkcssfontvariationsvalueprivate.h"
 
index 90e0fd3a84ee1a12b88fb18a754ff368c7a2e21a..c4688481908ec7bc034e9ff4b396845bbf0e1f68 100644 (file)
@@ -20,7 +20,9 @@
 #ifndef __GTK_CSS_FONT_VARIATIONS_VALUE_PRIVATE_H__
 #define __GTK_CSS_FONT_VARIATIONS_VALUE_PRIVATE_H__
 
-#include "gtkcssparserprivate.h"
+#include <gtk/css/gtkcss.h>
+#include "gtk/css/gtkcsstokenizerprivate.h"
+#include "gtk/css/gtkcssparserprivate.h"
 #include "gtkcssvalueprivate.h"
 
 G_BEGIN_DECLS
index 2fa93d25401604e63d310642deaee053b5b85097..debde7ee00739f1b282c3a33cc530076a8dbbb06 100644 (file)
@@ -23,6 +23,7 @@
 
 #include <math.h>
 
+#include "gtk/css/gtkcssserializerprivate.h"
 #include "gtksettingsprivate.h"
 #include "gtksnapshot.h"
 #include "gtkstyleproviderprivate.h"
index d4e4e669eabf0bb6a2935b6cba64d6663b4470c0..707c5d7648eff7213f957f5610912c6639985503 100644 (file)
@@ -23,7 +23,9 @@
 #include <cairo.h>
 #include <glib-object.h>
 
-#include "gtk/gtkcssparserprivate.h"
+#include <gtk/css/gtkcss.h>
+#include "gtk/css/gtkcsstokenizerprivate.h"
+#include "gtk/css/gtkcssparserprivate.h"
 #include "gtk/gtkcsstypesprivate.h"
 #include "gtk/gtksnapshot.h"
 #include "gtk/gtkstyleprovider.h"
index 89de02536cdef36961b859090dbc122f193d9889..359184840adc0fcc11720cfc5ddaab789005fcaf 100644 (file)
@@ -20,7 +20,9 @@
 #ifndef __GTK_CSS_KEYFRAMES_PRIVATE_H__
 #define __GTK_CSS_KEYFRAMES_PRIVATE_H__
 
-#include "gtkcssparserprivate.h"
+#include <gtk/css/gtkcss.h>
+#include "gtk/css/gtkcsstokenizerprivate.h"
+#include "gtk/css/gtkcssparserprivate.h"
 #include "gtkcssvalueprivate.h"
 #include "gtktypes.h"
 
index bcac90e45e5be88a9d56c9a30acd0d30abf496e5..5ea9b8f63b1201f6411c2ae898db452c0552b7ef 100644 (file)
@@ -20,7 +20,9 @@
 #ifndef __GTK_CSS_NUMBER_VALUE_PRIVATE_H__
 #define __GTK_CSS_NUMBER_VALUE_PRIVATE_H__
 
-#include "gtkcssparserprivate.h"
+#include <gtk/css/gtkcss.h>
+#include "gtk/css/gtkcsstokenizerprivate.h"
+#include "gtk/css/gtkcssparserprivate.h"
 #include "gtkcsstypesprivate.h"
 #include "gtkcssvalueprivate.h"
 
index b422494a8a6861ca2035d667bc75fcffce2c0be5..baf25b90e71a4f6dbdbf2b5f3c83172a5e0f9376 100644 (file)
@@ -20,7 +20,9 @@
 #ifndef __GTK_CSS_PALETTE_VALUE_PRIVATE_H__
 #define __GTK_CSS_PALETTE_VALUE_PRIVATE_H__
 
-#include "gtkcssparserprivate.h"
+#include <gtk/css/gtkcss.h>
+#include "gtk/css/gtkcsstokenizerprivate.h"
+#include "gtk/css/gtkcssparserprivate.h"
 #include "gtkcssvalueprivate.h"
 
 G_BEGIN_DECLS
diff --git a/gtk/gtkcssparser.c b/gtk/gtkcssparser.c
deleted file mode 100644 (file)
index bb5b0a8..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-/* GTK - The GIMP Toolkit
- * Copyright (C) 2011 Benjamin Otte <otte@gnome.org>
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#include "config.h"
-
-#include "gtkcssparserprivate.h"
-
-void
-_gtk_css_print_string (GString    *str,
-                       const char *string)
-{
-  gsize len;
-
-  g_return_if_fail (str != NULL);
-  g_return_if_fail (string != NULL);
-
-  g_string_append_c (str, '"');
-
-  do {
-    len = strcspn (string, "\\\"\n\r\f");
-    g_string_append_len (str, string, len);
-    string += len;
-    switch (*string)
-      {
-      case '\0':
-        goto out;
-      case '\n':
-        g_string_append (str, "\\A ");
-        break;
-      case '\r':
-        g_string_append (str, "\\D ");
-        break;
-      case '\f':
-        g_string_append (str, "\\C ");
-        break;
-      case '\"':
-        g_string_append (str, "\\\"");
-        break;
-      case '\\':
-        g_string_append (str, "\\\\");
-        break;
-      default:
-        g_assert_not_reached ();
-        break;
-      }
-    string++;
-  } while (*string);
-
-out:
-  g_string_append_c (str, '"');
-}
-
diff --git a/gtk/gtkcssparserprivate.h b/gtk/gtkcssparserprivate.h
deleted file mode 100644 (file)
index 68fa8a1..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-/* GTK - The GIMP Toolkit
- * Copyright (C) 2011 Benjamin Otte <otte@gnome.org>
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#ifndef __GTK_CSS_PARSER_PRIVATE_H__
-#define __GTK_CSS_PARSER_PRIVATE_H__
-
-#include <gtk/gtkcssprovider.h>
-
-#include <gtk/css/gtkcss.h>
-#include "gtk/css/gtkcsstokenizerprivate.h"
-#include "gtk/css/gtkcssparserprivate.h"
-
-#endif /* __GTK_CSS_PARSER_PRIVATE_H__ */
index fc87fbcbce481de0a25428ff8b2d12612bcdde24..2ef70df8d72cbe8b9541af8bf4b7da26128c14b6 100644 (file)
@@ -20,7 +20,9 @@
 #ifndef __GTK_CSS_POSITION_VALUE_PRIVATE_H__
 #define __GTK_CSS_POSITION_VALUE_PRIVATE_H__
 
-#include "gtkcssparserprivate.h"
+#include <gtk/css/gtkcss.h>
+#include "gtk/css/gtkcsstokenizerprivate.h"
+#include "gtk/css/gtkcssparserprivate.h"
 #include "gtkcssvalueprivate.h"
 
 G_BEGIN_DECLS
index db84e1daef53ff43d18fd6d1d3697963e7bdded0..ebbc1a165a779b8ef42f92984a71db31e5a14f04 100644 (file)
 
 #include "gtkcssproviderprivate.h"
 
+#include <gtk/css/gtkcss.h>
+#include "gtk/css/gtkcsstokenizerprivate.h"
+#include "gtk/css/gtkcssparserprivate.h"
 #include "gtkbitmaskprivate.h"
 #include "gtkcssarrayvalueprivate.h"
 #include "gtkcsscolorvalueprivate.h"
 #include "gtkcsskeyframesprivate.h"
-#include "gtkcssparserprivate.h"
 #include "gtkcssselectorprivate.h"
 #include "gtkcssshorthandpropertyprivate.h"
 #include "gtksettingsprivate.h"
index 7e8baa315f99eb584e93e8ae62a88694c20a3fcd..02665c5792b777def067626f6d9b0a1c737dccd3 100644 (file)
@@ -20,7 +20,9 @@
 #ifndef __GTK_CSS_REPEAT_VALUE_PRIVATE_H__
 #define __GTK_CSS_REPEAT_VALUE_PRIVATE_H__
 
-#include "gtkcssparserprivate.h"
+#include <gtk/css/gtkcss.h>
+#include "gtk/css/gtkcsstokenizerprivate.h"
+#include "gtk/css/gtkcssparserprivate.h"
 #include "gtkcssvalueprivate.h"
 
 G_BEGIN_DECLS
index 9cff8e90a89dcd5b1ba0bffa32904801a31f5248..af6781867f8c05fe908509db4b831578103063fa 100644 (file)
 #ifndef __GTK_CSS_SELECTOR_PRIVATE_H__
 #define __GTK_CSS_SELECTOR_PRIVATE_H__
 
+#include <gtk/css/gtkcss.h>
+#include "gtk/css/gtkcsstokenizerprivate.h"
+#include "gtk/css/gtkcssparserprivate.h"
 #include "gtk/gtkcountingbloomfilterprivate.h"
 #include "gtk/gtkcsstypesprivate.h"
-#include "gtk/gtkcssparserprivate.h"
 
 #define GDK_ARRAY_ELEMENT_TYPE gpointer
 #define GDK_ARRAY_TYPE_NAME GtkCssSelectorMatches
index c14d686566243592a83dd1c656e9c8da69786165..5784dfa5168e56c41f25275630d0381184b86133 100644 (file)
 #include <cairo.h>
 #include <pango/pango.h>
 
+#include <gtk/css/gtkcss.h>
+#include "gtk/css/gtkcsstokenizerprivate.h"
+#include "gtk/css/gtkcssparserprivate.h"
 #include "gtkborder.h"
 #include "gtktypes.h"
-#include "gtkcssparserprivate.h"
 #include "gtkcssvalueprivate.h"
 #include "gtkroundedboxprivate.h"
 #include "gtksnapshot.h"
index 52b8a470a963bdac2a8dc231c949e271335196ff..4af065b26510ca5428353a21641103a61ff11e66 100644 (file)
@@ -22,7 +22,9 @@
 
 #include <glib-object.h>
 
-#include "gtk/gtkcssparserprivate.h"
+#include <gtk/css/gtkcss.h>
+#include "gtk/css/gtkcsstokenizerprivate.h"
+#include "gtk/css/gtkcssparserprivate.h"
 #include "gtk/gtkcssstylepropertyprivate.h"
 #include "gtk/gtkstylepropertyprivate.h"
 
index c211c33afa3642da296dd4d39f7ecdf6f902421c..269a86e717fa42873d9bcf72257fee5262452ae6 100644 (file)
@@ -18,6 +18,7 @@
 #include "config.h"
 
 #include "gtkcssstringvalueprivate.h"
+#include "gtk/css/gtkcssserializerprivate.h"
 
 #include <string.h>
 
index 5fb703b6e3b5f8f5b38df01cb5b2134dd6391e2a..8645077cd06de1ff533ef30d9aa5833869558683 100644 (file)
@@ -20,7 +20,9 @@
 #ifndef __GTK_CSS_STRING_VALUE_PRIVATE_H__
 #define __GTK_CSS_STRING_VALUE_PRIVATE_H__
 
-#include "gtkcssparserprivate.h"
+#include <gtk/css/gtkcss.h>
+#include "gtk/css/gtkcsstokenizerprivate.h"
+#include "gtk/css/gtkcssparserprivate.h"
 #include "gtkcsstypesprivate.h"
 #include "gtkcssvalueprivate.h"
 
index eabafee6df3eda893319d92baca1b4f2b90ce9a4..de7f2e3762c687a8f42d2561aa0aa013be03b51d 100644 (file)
@@ -23,7 +23,9 @@
 #include <gdk-pixbuf/gdk-pixbuf.h>
 #include <math.h>
 
-#include "gtkcssparserprivate.h"
+#include <gtk/css/gtkcss.h>
+#include "gtk/css/gtkcsstokenizerprivate.h"
+#include "gtk/css/gtkcssparserprivate.h"
 #include "gtkcssstylepropertyprivate.h"
 #include "gtkcsstypesprivate.h"
 #include "gtkintl.h"
index 143dd87868808eac00a5ccc6c21c7906452fde9e..d6b8191d4b4c1ef90ba4856a8f72d87d9bedf89e 100644 (file)
@@ -20,7 +20,9 @@
 #ifndef __GTK_CSS_TRANSFORM_VALUE_PRIVATE_H__
 #define __GTK_CSS_TRANSFORM_VALUE_PRIVATE_H__
 
-#include "gtkcssparserprivate.h"
+#include <gtk/css/gtkcss.h>
+#include "gtk/css/gtkcsstokenizerprivate.h"
+#include "gtk/css/gtkcssparserprivate.h"
 #include "gtkcssvalueprivate.h"
 
 G_BEGIN_DECLS
index d0c82ec72cb79b9249e0a9147fea31024c1f188a..e6fee266f06d910c0cf893158ed9f585f8472343 100644 (file)
@@ -20,7 +20,9 @@
 #include "gtkstylepropertyprivate.h"
 
 #include "gtkcssprovider.h"
-#include "gtkcssparserprivate.h"
+#include <gtk/css/gtkcss.h>
+#include "gtk/css/gtkcsstokenizerprivate.h"
+#include "gtk/css/gtkcssparserprivate.h"
 #include "gtkcssshorthandpropertyprivate.h"
 #include "gtkcssstylepropertyprivate.h"
 #include "gtkcsstypesprivate.h"
index 385913f83e6aecb59e409fa1c4fb8f89639019d7..b57331dd840d957862406ac6e18dc9d9efb091ec 100644 (file)
@@ -18,7 +18,9 @@
 #ifndef __GTK_STYLEPROPERTY_PRIVATE_H__
 #define __GTK_STYLEPROPERTY_PRIVATE_H__
 
-#include "gtkcssparserprivate.h"
+#include <gtk/css/gtkcss.h>
+#include "gtk/css/gtkcsstokenizerprivate.h"
+#include "gtk/css/gtkcssparserprivate.h"
 #include "gtkstylecontextprivate.h"
 #include "gtkcssvalueprivate.h"
 
index 3e18f05cb60065d7aac7e4e86b8030aa7caeb486..8edef68f8bc44c6aa479c3025fb3bb54408366b4 100644 (file)
@@ -82,7 +82,6 @@ gtk_private_sources = files([
   'gtkcssnodestylecache.c',
   'gtkcssnumbervalue.c',
   'gtkcsspalettevalue.c',
-  'gtkcssparser.c',
   'gtkcsspositionvalue.c',
   'gtkcssrepeatvalue.c',
   'gtkcssselector.c',